package com.travelzen._10.innerclasses;

interface D {}
interface F {}
class X implements D,F{}
class Y implements D {
	F makeb(){
		return new F(){};
	}
}
public class MultiNiterfaces {
	static void takesa(D a){}
	static void takesb(F b){}
	public static void main(String[] args) {
		X x = new X();
		Y y = new Y();
		takesa(x);
		takesa(y);
		takesb(x);
		takesb(y.makeb());
	}
}
